<?php if (is_single()) { ?>

	<div id="pagenav">
		<div class="next"><?php next_post(' % &raquo;','','yes') ?></div>
		<div class="prev"><?php previous_post('&laquo; %','','yes') ?></div>
	</div>

<?php } else {
	
	if (function_exists('print_pg_navigation')) { print_pg_navigation('<p id="pagenav">','</p>'); 

	} else {?>

	<div id="postnav">
	<div class="next"><?php next_posts_link('&laquo; Previous Entries') ?></div>
	<div class="prev"><?php previous_posts_link('Next Entries &raquo;') ?></div>
	</div>

<?php } } ?>

